<?php echo $this->Html->script('jquery-1.4.2.min.js'); ?>
<?php echo $this->Html->script('jquery-ui-1.8.4.custom.min.js'); ?>
<?php echo $this->Html->css('start/jquery-ui-1.8.4.custom.css'); ?>

	
<head>

 

<head>
 
  
  
  

</head>

<body>


	 <img src='<?php echo $image['Account']['image']; ?>'  height="80" width="80" />&nbsp;<i class="muted"><?php echo  '@'.$image['Account']['screen_name'] ?></a></i>


	 <br></br>

    <table>
        <tr>
            <th >Time</th>
            <th>Text</th>
            <th>Status</th>
            <th>Actions</th>

        </tr>
        <?php foreach($results[1] as $field):?>
            <tr style="background-color:#FFFFFF">
              <th> <button type ="button" rel="popover" class="btn" data-content="change Time ?"><?php echo $field['FutureTweet']['release_date'] ?></button></th>
              <th> <?php echo $field['FutureTweet']['tweet_text'] ?></th>
              <th> <?php echo $field['FutureTweet']['status']; ?></th>
			  <th width = 20px> <?php if($field['FutureTweet']['user_email'] == $email){
			  echo $this->Html->link('Edit', "javascript:SetEdit('".$field['FutureTweet']['release_date']."','".$field['FutureTweet']['tweet_text']."','".$field['FutureTweet']['user_email']."','".$field['FutureTweet']['id']."')");
			  ?></th>
			  <th width = 20px> <?php echo $this->Html->link('Delete', array('action'=>'deleteTweet' , $field['FutureTweet']['id']),array('confirm' => 'Are you sure?'));
			  }?>
              </th>
			  <th width = 20px><?php if($results[0] == 'moderator' && $field ['FutureTweet']['status'] == 'pending') { ?>
              <button class="btn"><?php echo $this->Html->link('Approve', array('action'=>'approvePost' , $field['FutureTweet']['id'])); ?></button>
			  <?php } ?></th>

            </tr>
       <!-- <td>
            <button type="button" onclick="displayDate()">Edit</button>
            <button type="button"   onclick="displayDate()">Delete</button>
        </td>-->

        
        <?php endforeach;?>
    </table>
   
    
</body>
</html>